#include <iostream>
#include <iomanip>
using namespace std;

int main()
{
	int a;
	while(1)
	{
		cin >> hex >> a;
		cout << char(a) << '\n';
	}
}
